package src.stu23002121.chapter07;

import javafx.scene.control.TableColumn;

import java.util.Scanner;

public class huiwenshu {
    public static void main(String[] arge){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数");
        int x = sc.nextInt();
        int temp = x;
        int num = 0;
        while(x!=0){
            int ge = x % 10;
            x = x / 10;
            num = num * 10 + ge;
        }
        System.out.println(num);
        System.out.println("这个数是回文数吗：");
        System.out.println(num == temp);
    }

}
